package user.main;

import java.io.BufferedReader;
import java.io.InputStreamReader;

import outputviewer.ObserveOutput;
import filewriting.SimpleViewWriter;

/**
 * Displays the "simple view".
 * 
 * @author Trevor Terris
 *
 */
public class RunViewSimple 
{
	public static void main(String[] args)
	{
		try
		{
			System.out.println("What directory should be used for the file?");
	    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    	String dirName = br.readLine();
	    	ObserveOutput outputDisplay = new ObserveOutput();
			outputDisplay.CreateApplet(dirName + "/" + SimpleViewWriter.SIMPLE_VIEW_NAME);
			outputDisplay.start();
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
	}
}
